<?php 

class Customerlist {
	var $user_id = false;
	
	public function Customerlist() {
		$this->user_id = $_SESSION['joel']->user->user_id;
		$this->table = TP."_customer";
	}
	
	public function getList() {
		return $_SESSION['db']->getAll("select * from `".$this->table."` where c_user_id = '".$this->user_id."' order by c_name");
	}
}
